-- GENERATED SPELL FOR [Razorthorn Ravager] --


function spell0_24922(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(33781,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24922', 2316, 1)
end

function spell1_24922(pUnit, Event) --@Ravager Taunt,n/a--
pUnit:FullCastSpellOnTarget(46276,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24922', 3000, 1)
end

function spell2_24922(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24922', 15000, 1)
end

function Sorts_24922(pUnit, Event)
local choix_sorts_24922 = math.random(0, 2)
if choix_sorts_24922 == 0 then
pUnit:RegisterEvent('spell0_24922', 1, 1)
end
if choix_sorts_24922 == 1 then
pUnit:RegisterEvent('spell1_24922', 1, 1)
end
if choix_sorts_24922 == 2 then
pUnit:RegisterEvent('spell2_24922', 1, 1)
end
end

function mob24922_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24922', math.random(1500, 3000), 1)
end

function mob24922_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24922_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24922_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24922, 1, 'mob24922_Action')
RegisterUnitEvent(24922, 2, 'mob24922_Leave')
RegisterUnitEvent(24922, 3, 'mob24922_Kill')
RegisterUnitEvent(24922, 4, 'mob24922_Die')
